home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBTcpip / DialogThread.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  1.1 KB  |  62 lines

  1. /*****************************************
  2. HTBtcpip.dll
  3.  
  4. Copyright TransEra Corporation 1999
  5.  
  6. DialogThread.cpp
  7. ****************************************/
  8. #include "stdafx.h"
  9. #include "comdll.h"
  10. #include "DialogThread.h"
  11.  
  12.  
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17.  
  18. #endif
  19.  
  20.  
  21. extern BOOL g_IsThreadRunning;
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // DialogThread
  25.  
  26. IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
  27.  
  28. DialogThread::DialogThread()
  29. {    
  30. }
  31.  
  32. DialogThread::~DialogThread()
  33. {
  34. }
  35.  
  36. BOOL DialogThread::InitInstance()
  37. {    
  38.                                         
  39.     ListenThread();
  40.     
  41.     return TRUE;
  42. }
  43.  
  44. int DialogThread::ExitInstance()
  45. {
  46.  
  47.     g_IsThreadRunning = FALSE;
  48.  
  49.     return CWinThread::ExitInstance();
  50. }
  51.  
  52. BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
  53.     //{{AFX_MSG_MAP(DialogThread)
  54.         // NOTE - the ClassWizard will add and remove mapping macros here.
  55.     //}}AFX_MSG_MAP
  56. END_MESSAGE_MAP()
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59. // DialogThread message handlers
  60.  
  61.  
  62.